package login.frame;

import login.panel.LoginPanel;
import javax.swing.SwingUtilities;
import javax.swing.UIManager;
//import parent.frame.ParentFrame;

public class LoginFrame extends ParentFrame{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
//	public JPanel adminPage = new JPanel();
	
	public static LoginFrame instance = new LoginFrame();
	
	public LoginFrame() {
		super("AI智能助手 - 登录");
		initializeLogin();
	}
	
	private void initializeLogin() {
		LoginPanel.instance.setOpaque(false);
		this.add(LoginPanel.instance);
	}

	@Override
	protected int acWidth() {
		return 500;
	}

	@Override
	protected int acHeight() {
		return 550;
	}

	@Override
	public void xianShi() {
		super.xianShi();
	}
	
	// 测试用main方法
	public static void main(String[] args) {
		SwingUtilities.invokeLater(() -> {
			try {
				UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
			} catch (Exception e) {
				e.printStackTrace();
			}
			new LoginFrame().setVisible(true);
		});
	}

}
